/*
 * @Description: 
 * @Autor: Bingo
 * @Date: 2024-08-29 16:21:57
 * @LastEditors: Bingo
 * @LastEditTime: 2024-08-29 16:43:53
 */

// 将枚举的key 和 value对调
const reverseEnumFn = (em:any)=>{
  return Object.entries(em).reduce(
    (initVal,[key,value])=>{
      if(typeof value === "string"){
        initVal[value] = key
      }
      return initVal
    }
  ,{} as {[key:string]:string}
  )
}

export const Re_KfList_Em = reverseEnumFn(1);
export const Re_FuncList_Em = reverseEnumFn(2)